
<div class="navbar navbar-inverse navbar-fixed-top" role="banner">
	<div class="container">
		<div class="navbar-header">
			<button class="navbar-toggle collapsed" type="button"
				data-toggle="collapse" data-target=".navbar-collapse">
				<span class="sr-only">Toggle navigation</span> <span
					class="icon-bar"></span> <span class="icon-bar"></span> <span
					class="icon-bar"></span>
			</button>
			<a class="navbar-brand hidden-sm" href="${siteurl}">openyelp</a>
		</div>
		<div class="navbar-collapse collapse" role="navigation">
			<ul class="nav navbar-nav">
				<li><a href="#" target="_blank">消息</a></li>
				<li><a href="#" target="_blank">话题</a></li>
				<li><a href="#" target="_blank">活动</a></li>
				<li><a href="#" target="_blank">找好友</a></li>
			</ul>

			[@shiro.guest]
				<form class="navbar-form pull-right" action="${siteurl}login.htm"
					method="post">
					<input class="span2" type="text" name="username" placeholder="用户名">
					<input class="span2" type="password" name="password"
						placeholder="密码">
					<button type="submit" class="btn">登陆</button>
				</form>
			[/@shiro.guest]
			[@shiro.user] 
			<div class="navbar-form pull-right">
			<a href="${siteurl}/admin/index.htm">[@shiro.principal /]</a>
			
			<span style="color: white;">登录，</span><a
					href="${siteurl}/logout.htm">退出</a>
		     </div>
			[/@shiro.user]
		</div>
	</div>
</div>